package com.hoshiibuy.cms.common.dataobject;


import lombok.Data;

import java.util.List;

/**
 * 专题栏目目录
 */
@Data
public class CategoryTocDO {
    private Long id;

    /**
     * 父级栏目
     */
    private int pid;

    /**
     * 栏目标题
     */
    private String title;

    /**
     * 栏目外链（如果是外部URL）
     */
    private String url;

    /**
     * 目标
     */
    private String target;

    /**
     * 排序
     */
    private int orders;

    /**
     * 封面图
     */
    private String frontCover;

    /**
     * 子目录
     */
    private List<CategoryTocDO> children;

    /**
     * 所属栏目
     */
    private CategoryDO category;

    /**
     * 关联文章
     */
    private ArticleDO article;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public int getOrders() {
		return orders;
	}

	public void setOrders(int orders) {
		this.orders = orders;
	}

	public String getFrontCover() {
		return frontCover;
	}

	public void setFrontCover(String frontCover) {
		this.frontCover = frontCover;
	}

	public List<CategoryTocDO> getChildren() {
		return children;
	}

	public void setChildren(List<CategoryTocDO> children) {
		this.children = children;
	}

	public CategoryDO getCategory() {
		return category;
	}

	public void setCategory(CategoryDO category) {
		this.category = category;
	}

	public ArticleDO getArticle() {
		return article;
	}

	public void setArticle(ArticleDO article) {
		this.article = article;
	}
    
    

}
